PHP performance optimization Daquan (php. ini), performance optimization php. ini. PHP performance optimization (php. ini), performance optimization php. chapter 1 of ini is aimed at optimizing too many system calls. my optimization is aimed at too
PHP performance optimization (php. ini), performance optimization php. ini
Chapter 1 Optimization of excessive system callsMy Optimization Aimed at too many syscall calls, so I used strace to track apache for analysis.
1. apache2ctl-X &Use the-X
PHP provides some alternative syntax for process control, including if, while, for,foreach , and switch. The basic form of substitution syntax is to replace the left curly brace ({) with a colon (:) and the right curly brace (}) into endif;,endwhile;
Some PHP performance optimization + my own opinions + explanations. PHP optimization for PHP is mainly for php. the main parameters in ini are adjusted and set properly. let's take a look at php below. some parameters in ini that have a major impact
Write PHP security policies. PHP was initially called PersonalHomePage. later, as PHP became a very popular scripting language, its name also changed, which is called plusionalhypertextpreprocessor. PHP with PHP4.2 was initially called the Personal
PHP performance optimization (finishing ). PHP optimization for PHP is mainly for php. the main parameters in ini are adjusted and set properly. let's take a look at php below. some parameters in ini that have a major impact on performance should be
Introduction to PHP performance optimization. PHP optimization for PHP is mainly for php. the main parameters in ini are adjusted and set properly. let's take a look at php below. how to optimize some parameters in ini that have a major impact on
This article is mainly to share with you the PHP performance optimization example, this article lists a lot of points, hope to help everyone.
1. Try to be static:
If a method can be static, it is declared static, the speed can be increased by 1/4,
1. Try to be static:If a method can be static, it is declared static, the speed can be increased by 1/4, even when I test, this improved by nearly three times times.Of course, this test method needs to be executed at level 100,000 and above, the
The first chapter is optimized for system calls too muchMy optimization for syscall calls too many problems, so use Strace to trace Apache for analysis.
1. Apache2ctl-x &Start the httpd process with the-X (debug) parameter, which starts only 1
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.